package com.bw.skill.bind;

import android.view.LayoutInflater;
import android.view.View;
import android.widget.ImageView;

import androidx.databinding.BindingAdapter;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;

import com.bumptech.glide.Glide;
import com.bw.mvvm_common.BaseApplication;
import com.bw.skill.R;
import com.chad.library.adapter.base.BaseQuickAdapter;

public
/**
 * @author Lishaohe
 * @description:
 * @date :2021/10/27 0027 上午 9:24
 *
 */
class SeckillBind {
    @BindingAdapter(value = {"seckilladapter"})
    public static void bindSeckill(
            RecyclerView recyclerView,
            BaseQuickAdapter adapter
    ){
        LinearLayoutManager manager = new LinearLayoutManager(recyclerView.getContext());
        manager.setOrientation(LinearLayoutManager.VERTICAL);
        recyclerView.setLayoutManager(manager);
        recyclerView.setAdapter(adapter);
    }



}
